import {httplLocalhost} from './index'

//jwt登录
export const login = (username, password) => {
    return httplLocalhost.request({
        url: 'sysuser/login',
        method: 'post',
        data: {
            username: username,
            password: password
        }
    })
}

export const register1 = (name, password) => {
    return httplLocalhost.request({
        url: 'sysuser/register',
        method: 'post',
        data: {
            name: name,
            pwd: password
        }
    })
}